<template>
  <div style="background:#ddd">
    <div>
      <header class="mint-header" style="font-size: 18px;">
        <div class="mint-header-button is-left">
          <button
            class="mint-button mint-button--default mint-button--normal"
            style="font-size: 15px;"
            @click="option"
          >
            <span class="mint-button-icon">
              <i class="mintui mintui-back"></i>
            </span>
            <label class="mint-button-text">返回</label>
          </button>
        </div>
        <h1 class="mint-header-title">详情页</h1>
        <div class="mint-header-button is-right"></div>
      </header>
      <!-- <div style="height:40px" /> -->
      <div style="width:95%;margin:10px auto 0">
        <div v-if="equiinfolist.hash">
          <mt-cell title="设备名称" :value="equiinfolist.hash.ep_ename" />
          <mt-cell title="管理编号" :value="equiinfolist.hash.managenum" />
          <mt-cell title="所在部门" :value="equiinfolist.hash.duty_org" />
          <mt-cell title="规格型号" :value="equiinfolist.hash.scale" />
          <mt-cell title="本次检定/校准日期" :value="equiinfolist.hash.verifiytime" />
          <mt-cell title="实施日期" :value="equiinfolist.hash.check_time" />
          <mt-cell title="检查人员" :value="equiinfolist.hash.username" />
          <mt-cell title="检查方法" :value="equiinfolist.hash.check_method" />
          <mt-cell title="备注" :value="equiinfolist.hash.remark" />
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  components: {},
  data() {
    return {
      equiinfolist: [],
      ts: this.newStore(),
      htitle: '详情页'
    }
  },
  created() {
    this.getonelist()
  },
  methods: {
    getonelist() {
      const req = {
        handle:
          'DD5D108B99FC12B7BAB3E6EAE5C936EF5FBB6F4BAE9BBB7323B5E6488CAE7E98',
        id: this.$route.query.id,
        eid: this.$route.query.eid
      }
      this.spost(this.ts, '/mainservlet', req).then(ts => {
        this.equiinfolist = ts.d.data.operation1[0]
        console.log(this.equiinfolist)
      })
    },
    option() {
      this.$router.push({
        name: 'intermed',
        query: {
          name: ''
        }
      })
    }
  }
}
</script>
<style scoped>
</style>